package com.ruoyi.project.system.version.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 版本对象 version
 * 
 * @author ruoyi
 * @date 2021-05-24
 */
public class Version extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Long id;

    /** 版本号 */
    @Excel(name = "版本号")
    private String virsionNum;

    /** 是否强制更新：0否 1是 */
    @Excel(name = "是否强制更新：0否 1是")
    private String mustUpdate;

    /** 版本说明 */
    @Excel(name = "版本说明")
    private String descrip;

    /** 安装包路径 */
    @Excel(name = "安装包路径")
    private String updateUrl;

    /** 创建人，关联后台管理系统user表 */
    @Excel(name = "创建人，关联后台管理系统user表")
    private Long creator;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addtime;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setVirsionNum(String virsionNum)
    {
        this.virsionNum = virsionNum;
    }

    public String getVirsionNum()
    {
        return virsionNum;
    }
    public void setMustUpdate(String mustUpdate)
    {
        this.mustUpdate = mustUpdate;
    }

    public String getMustUpdate()
    {
        return mustUpdate;
    }
    public void setDescrip(String descrip)
    {
        this.descrip = descrip;
    }

    public String getDescrip()
    {
        return descrip;
    }
    public void setUpdateUrl(String updateUrl)
    {
        this.updateUrl = updateUrl;
    }

    public String getUpdateUrl()
    {
        return updateUrl;
    }
    public void setCreator(Long creator)
    {
        this.creator = creator;
    }

    public Long getCreator()
    {
        return creator;
    }
    public void setAddtime(Date addtime)
    {
        this.addtime = addtime;
    }

    public Date getAddtime()
    {
        return addtime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("virsionNum", getVirsionNum())
            .append("mustUpdate", getMustUpdate())
            .append("descrip", getDescrip())
            .append("updateUrl", getUpdateUrl())
            .append("creator", getCreator())
            .append("addtime", getAddtime())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
